package com.shangqing.document_management.constant;
/**
 * 统一返回内容
 * @param <T>
 */
public class Result<T> {
   private Integer code;
   private String message;
   private String state;
   private T date;
   private Object tokens;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public Object getTokens() {
        return tokens;
    }

    public void setTokens(Object tokens) {
        this.tokens = tokens;
    }

    public Result(Integer code, String message, String state, T date, Object tokens) {
        this.code = code;
        this.message = message;
        this.state = state;
        this.date = date;
        this.tokens = tokens;
    }

    public Result(Integer code, String message, String state, T date) {
        this.code = code;
        this.message = message;
        this.state = state;
        this.date = date;
    }

    public Result(Integer code, String message, String state) {
        this.code = code;
        this.message = message;
        this.state = state;
    }
    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Result() {}


}
